<?php
require (dirname(__FILE__) . '/../app/init.php');
header('content-type:text/html;charset=utf-8');
$act = isset($_GET['act']) ? $_GET['act'] : 'admin';
$_GET['act'] = $act;
if (empty($act))
{
	header( 'HTTP/1.1 404 Not Found' );
	die;
}

$st = isset($_GET['st']) ? $_GET['st'] : 'main';
$_GET['st'] = $st;
if (empty($st))
{
	header( 'HTTP/1.1 404 Not Found' );
	die;
}

$tmpObjName = 'ctrl_' . $act;
if ( !class_exists( $tmpObjName ) )
{
	header( 'HTTP/1.1 404 Not Found' );
	die;
}
ctrl_base::init();
if(method_exists($tmpObjName,$st)) $tmpObjName::$st();
